package com.chuck;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@ServletComponentScan//要扫描servlet组件
@EnableTransactionManagement//开启事务
@MapperScan("com.chuck.dao")//第二步：扫描dao路径
public class DtbootApplication {

    public static void main(String[] args) {
        SpringApplication.run(DtbootApplication.class, args);
    }

}
